(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/app/coupon/detail" ], {
    "088e": function(o, n, t) {
        var e = t("0f22");
        t.n(e).a;
    },
    "0f22": function(o, n, t) {},
    "3a1f": function(o, n, t) {
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.default = void 0;
        var e = {
            components: {
                shoproMiniCard: function() {
                    t.e("components/shopro-mini-card/shopro-mini-card").then(function() {
                        return resolve(t("e6d5"));
                    }.bind(null, t)).catch(t.oe);
                }
            },
            data: function() {
                return {
                    couponDetail: {},
                    tools: this.$tools,
                    couponGoods: [],
                    scrollId: "",
                    nowTime: new Date().getTime(),
                    state: 0
                };
            },
            computed: {},
            onLoad: function() {
                this.state = this.$Route.query.state, this.getCouponDetail(), this.getCouponGoods();
            },
            methods: {
                getCouponDetail: function() {
                    var n = this;
                    n.$api("coupons.detail", {
                        id: n.$Route.query.couponId
                    }).then(function(o) {
                        1 === o.code && (n.couponDetail = o.data, o.data.usetimeend);
                    });
                },
                getCouponGoods: function() {
                    var n = this;
                    n.$api("coupons.goods", {
                        id: n.$Route.query.couponId
                    }).then(function(o) {
                        1 === o.code && (n.couponGoods = o.data.data);
                    });
                },
                onScroll: function() {
                    this.scrollId = "";
                },
                goScroll: function() {
                    this.scrollId = "couponGoods";
                }
            }
        };
        n.default = e;
    },
    5765: function(o, n, t) {
        t.r(n);
        var e, u = t("a2ea"), i = t("b4dc");
        for (e in i) "default" !== e && function(o) {
            t.d(n, o, function() {
                return i[o];
            });
        }(e);
        t("088e");
        var a = t("f0c5"), u = Object(a.a)(i.default, u.b, u.c, !1, null, null, null, !1, u.a, void 0);
        n.default = u.exports;
    },
    a2ea: function(o, n, t) {
        t.d(n, "b", function() {
            return u;
        }), t.d(n, "c", function() {
            return i;
        }), t.d(n, "a", function() {
            return e;
        });
        var e = {
            shoproMiniCard: function() {
                return t.e("components/shopro-mini-card/shopro-mini-card").then(t.bind(null, "e6d5"));
            }
        }, u = function() {
            var o = this, n = (o.$createElement, o._self._c, o.couponDetail.usetime ? o.tools.timestamp(o.couponDetail.usetime.start) : null), t = o.couponDetail.usetime ? o.tools.timestamp(o.couponDetail.usetime.end) : null;
            o.$mp.data = Object.assign({}, {
                $root: {
                    g0: n,
                    g1: t
                }
            });
        }, i = [];
    },
    b4dc: function(o, n, t) {
        t.r(n);
        var e, u = t("3a1f"), i = t.n(u);
        for (e in u) "default" !== e && function(o) {
            t.d(n, o, function() {
                return u[o];
            });
        }(e);
        n.default = i.a;
    },
    b4de: function(o, n, e) {
        (function(o) {
            e("767a"), t(e("66fd"));
            var n = t(e("5765"));
            function t(o) {
                return o && o.__esModule ? o : {
                    default: o
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = e, o(n.default);
        }).call(this, e("543d").createPage);
    }
}, [ [ "b4de", "common/runtime", "common/vendor" ] ] ]);